import React from 'react';  // 引入React 
import ReactDOM from 'react-dom/client'; // 引入 Raect dom
import './index.css';  // 引入 样式
import App from './App';   // 根组件
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(document.getElementById('root'));

// 渲染
root.render(
  // 严格模式
  <React.StrictMode>
    <App />
  </React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
